package game.commands.net
{
	import game.model.player.PlayerProxy;
	import game.model.scene.SceneProxy;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	import utiles.net.QProtocol;
	
	// USER_INFO_RESP
	public class SCMD_502 extends SimpleCommand
	{
		public function SCMD_502()
		{
			super();
		}
		
		override public function execute(notification:INotification):void
		{
			var body:Object = QProtocol(notification.getBody()).body;
			
			var playerProxy:PlayerProxy = facade.retrieveProxy(PlayerProxy.NAME) as PlayerProxy;
			
			var sceneProxy:SceneProxy = facade.retrieveProxy(SceneProxy.NAME) as SceneProxy;
			sceneProxy.switchScene(body.sceneID, body.x, body.y);
//			playerProxy.initInfo(body);
		}
	}
}